package com.situ.fly.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.situ.fly.dao.QuestionDao;
import com.situ.fly.entity.Question;
@Service
public class QuestionServiceImpl implements QuestionService{
     
	@Autowired
	
	private QuestionDao  questionDao;
	@Override
	public int add(Question question) {
		//调用Dao层，将问题保存到数据库中
		return questionDao.insert(question);
	}
	@Override
	public Object getById(Integer id) {
		
		return questionDao.selectById(id);
	}

}
